<?php



        $linkDB = mysql_connect("localhost","root","");
        mysql_select_db("personalizatuweb", $linkDB);
		
		$consultaSQL2 = "DELETE FROM pagina WHERE ID_SITIO='".$_GET['site']."'"; 
		mysql_query($consultaSQL2, $linkDB) or die(mysql_error());

		$consultaSQL1 = "DELETE FROM sitioweb WHERE ID_SITIO='".$_GET['site']."'";
		mysql_query($consultaSQL1, $linkDB) or die(mysql_error());
		
	//Borra Directorio del sitio web
       unlink($_GET['URL']);

		
	 	mysql_close($linkDB);
	  	header ("Location: index.php");


?>